import Vue from 'vue'
import VueRouter, { RouteConfig } from 'vue-router'

Vue.use(VueRouter)

const routes: Array<RouteConfig> = [
  {
    path: '/',
    name: 'login',
    component: () => import(/* webpackChunkName: "login" */ '../views/index/login.vue')
  },
  {
    path: '/registry',
    name: 'registry',
    component: () => import(/* webpackChunkName: "registry" */ '../views/index/registry.vue')
  },
  {
    path: '/mine',
    name: 'mine',
    component: () => import(/* webpackChunkName: "mine" */ '../views/index/mine.vue')
  },
  {
    path: '/icbc',
    name: 'icbc',
    component: () => import(/* webpackChunkName: "icbc" */ '../views/test/icbc1.vue')
  },
  {
    path: '/faceScan',
    name: 'faceScan',
    component: () => import(/* webpackChunkName: "faceScan" */ '../views/faceScan/index.vue')
  },
  {
    path: '/provider',
    name: 'provider',
    component: () => import(/* webpackChunkName: "provider" */ '../views/test/provider.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
